package cn.funeralobjects.ams.web.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author FuneralObjects
 * Create date: 2020/6/8 10:04 AM
 */
@Data
@Accessors(chain = true)
public class MRamRole {
    /**
     * 角色名
     */
    @NotEmpty
    private String roleName;
    @NotEmpty
    private String code;
    @NotEmpty
    private String name;
    /**
     * 访问id
     */
    @NotNull
    @Min(1)
    private Integer resProdId;
}
